/*
 * @Author: 郭招娣 10615594+guo-zhaodi@user.noreply.gitee.com
 * @Date: 2022-11-02 08:29:01
 * @LastEditors: 郭招娣 10615594+guo-zhaodi@user.noreply.gitee.com
 * @LastEditTime: 2022-11-02 08:30:39
 * @FilePath: \宏烨找房\agent\src\setupProxy.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

const { createProxyMiddleware } = require('http-proxy-middleware')
module.exports = (app) => {
    app.use(createProxyMiddleware(
        '/api', {
        target: 'http://127.0.0.1:7001',
        pathRewrite: { '^/api': '' },
    }))
}